<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>{#qishi_company_profile listname="company" id=$smarty.get.id#}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#$company.companyname#} - 电子地图 - {#$QISHI.site_name#}</title>
<meta name="description" content="{#$company.description#}地址">
<meta name="keywords" content="{#$company.companyname#}，电子地图">


<meta http-equiv="X-UA-Compatible" content="IE=7">
<link href="{#$QISHI.site_template#}css/common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/jobs.css" rel="stylesheet" type="text/css" />
</head>
<script src="http://api.map.baidu.com/api?key={#$QISHI.map_key#}&v=1.0&services=true" type="text/javascript"></script>
<body>
{#include file="header.htm"#}
<div class="page_location link_bk">
当前位置：<a href="{#$QISHI.site_dir#}">首页</a>&nbsp;>>&nbsp;{#$company.companyname#}&nbsp;>>&nbsp;电子地图</div>
<div style="width:954px;height:380px;border:3px solid  #CCCCCC;  margin:0 auto; margin-top:6px;" id="container"></div>
<script type="text/javascript">
var map = new BMap.Map("container");   
var point = new BMap.Point({#$company.map_x#}, {#$company.map_y#});   
map.centerAndZoom(point, {#$company.map_zoom#});
map.addControl(new BMap.NavigationControl()); //添加鱼骨
map.enableScrollWheelZoom();//启用滚轮放大缩小，默认禁用。
// 创建标注
var qs_marker = new BMap.Marker(point);           
map.addOverlay(qs_marker); 
// 创建标注 
// 打开信息窗口 
var opts = {   
  width : 250,     // 信息窗口宽度   
  height: 100,     // 信息窗口高度   
  title : "{#$company.companyname#}"  // 信息窗口标题   
}   
var infoWindow = new BMap.InfoWindow("{#$company.address#}", opts);  // 创建信息窗口对象   
map.openInfoWindow(infoWindow, point);
// 打开信息窗口  

</script>
{#include file="footer.htm"#}
</body>
</html>
